package com.aizhixin.lab.course.template.domain;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Temporal;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Data
public class TemplateDomain {
    private Long id;
    private String name;
    private Integer type;
    private Integer classHour;
    private Integer countChapter;
    private Integer countSection;
    @ApiModelProperty(value = "课程包含实验个数", required = false)
    private Integer countVm =0;
    private String image;
    private Boolean isPublish;
    private String intro;
    private Integer isDefaultEx=0;
    private String vmName;
    private Integer vmNum;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date createdDate;
    private List<TemplateProfDomain> profList;
    private List<TemplateFileDomain> fileList;
    private String userName;
}
